<template>
	<view>
		<web-view :src="detail.vr"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: '',
				detail: ''
			}
		},
		onLoad(option) {
			// 获取传递过来的链接
			if (option.type != undefined && option.type == 1) {




				this.id = option.id

				this.$api.parkDetail({
					id: this.id
				}).then(res => {
					this.detail = res.data



				})
			} else {
				this.id = option.id
		
					this.$api.getFactoryDetail({
						id: this.id
					}).then(res => {
						this.detail = res.data

						this.pushDetail(res.data)

					})
				
			}
		}

	}
</script>

<style>

</style>
